import request from '@/utils/request'

// 查询家长需求列表
export function listJiazhang(query) {
  return request({
    url: '/ziliao/jiazhang/list',
    method: 'get',
    params: query
  })
}

// 查询家长需求详细
export function getJiazhang(id) {
  return request({
    url: '/ziliao/jiazhang/' + id,
    method: 'get'
  })
}

// 新增家长需求
export function addJiazhang(data) {
  return request({
    url: '/ziliao/jiazhang',
    method: 'post',
    data: data
  })
}

// 修改家长需求
export function updateJiazhang(data) {
  return request({
    url: '/ziliao/jiazhang',
    method: 'put',
    data: data
  })
}

// 删除家长需求
export function delJiazhang(id) {
  return request({
    url: '/ziliao/jiazhang/' + id,
    method: 'delete'
  })
}
